package com.teamview.domain;

import  com.teamview.service.Status;
/**
 * @author Lenl
 * @create 2021-06-01 22:25
 */
public class Programmer extends  Employee {
    private int memberId;
    private Status status=Status.FREE;
    private Equipment equipment;

    public Programmer() {
    }

    public Programmer(int id, String name, int age, double salary, Equipment equipment) {
        super(id, name, age, salary);
        this.equipment = equipment;
    }

    public int getMemberId() {
        return memberId;
    }

    public void setMemberId(int memberId) {
        this.memberId = memberId;
    }

    public Status getStatus() {
        return this.status;
    }

    public void setStatus(Status status) {
        this.status = status;
    }

    public Equipment getEquipment() {
        return equipment;
    }

    public void setEquipment(Equipment equipment) {
        this.equipment = equipment;
    }

    @Override
    public String toString() {
        return super.toString()+"\t\t"+"程序员"+"\t"+getStatus()+"\t\t\t\t\t\t"+equipment.getDescription();
    }

    public String getTeamBaseDetail(){
        return memberId+"/"+getId()+"\t\t"+getName()+"\t"+getAge()+"\t\t"+getSalary();
    }

    public  String getDetailsForTeam(){
        return getTeamBaseDetail()+"\t程序员";
    }
}
